class Util(object):
    @staticmethod
    def sqlString(obj):
        if isinstance(obj, str):
            return obj is not None and "'" + obj.strip() + "'" or "''"
        else:
            return str(obj)
